gtk4.git
8 years agotooltip: Set icon from texture instead of pixbuf
Matthias Clasen [Thu, 30 Nov 2017 03:17:59 +0000 (22:17 -0500)]
tooltip: Set icon from texture instead of pixbuf

Another part of removing GdkPixbuf from APIs.

8 years agoDrop gtk_cell_view_new_with_pixbuf
Matthias Clasen [Thu, 30 Nov 2017 01:26:28 +0000 (20:26 -0500)]
Drop gtk_cell_view_new_with_pixbuf

We have a texture-based alternative for this now.

8 years agoDrop gdk_cursor_new_from_pixbuf
Matthias Clasen [Thu, 30 Nov 2017 01:16:43 +0000 (20:16 -0500)]
Drop gdk_cursor_new_from_pixbuf

Part of the push to remove GdkPixbuf from the API.

8 years agodocs: Remove mentions of gdk_cursor_new_from_pixbuf
Matthias Clasen [Thu, 30 Nov 2017 01:14:53 +0000 (20:14 -0500)]
docs: Remove mentions of gdk_cursor_new_from_pixbuf

This function is going away.

8 years agodnd: Stop using gdk_cursor_new_from_pixbuf
Matthias Clasen [Thu, 30 Nov 2017 01:13:26 +0000 (20:13 -0500)]
dnd: Stop using gdk_cursor_new_from_pixbuf

We can just use gdk_cursor_new_from_texture here.

8 years agoFix the build
Matthias Clasen [Thu, 30 Nov 2017 01:12:43 +0000 (20:12 -0500)]
Fix the build

8 years agoDrop gtk_drag_source_set_icon_pixbuf
Matthias Clasen [Thu, 30 Nov 2017 01:02:47 +0000 (20:02 -0500)]
Drop gtk_drag_source_set_icon_pixbuf

Part of removing GdkPixbuf from the API.

8 years agotestdnd: Stop using gtk_drag_source_set_icon_pixbuf
Matthias Clasen [Thu, 30 Nov 2017 01:02:01 +0000 (20:02 -0500)]
testdnd: Stop using gtk_drag_source_set_icon_pixbuf

We can avoid it here as well.

8 years agoicon-browser: Stop using gtk_drag_source_set_icon_pixbuf
Matthias Clasen [Thu, 30 Nov 2017 01:01:32 +0000 (20:01 -0500)]
icon-browser: Stop using gtk_drag_source_set_icon_pixbuf

We can just use gtk_drag_source_set_icon_name.

8 years agoDrop gtk_css_image_surface_new_for_pixbuf
Matthias Clasen [Thu, 30 Nov 2017 00:47:57 +0000 (19:47 -0500)]
Drop gtk_css_image_surface_new_for_pixbuf

It is unused private api.

8 years agoAvoid pixbufs when loading themed icons
Matthias Clasen [Thu, 30 Nov 2017 00:44:30 +0000 (19:44 -0500)]
Avoid pixbufs when loading themed icons

We can directly get a texture from GtkIconTheme now.

8 years agoAdd gtk_cell_view_new_with_texture
Matthias Clasen [Thu, 30 Nov 2017 00:28:53 +0000 (19:28 -0500)]
Add gtk_cell_view_new_with_texture

Just more api to replace pixbufs with textures.

8 years agoDrop gtk_snapshot_render_icon
Matthias Clasen [Wed, 29 Nov 2017 23:34:45 +0000 (18:34 -0500)]
Drop gtk_snapshot_render_icon

Its not used, and we are working towards removing
GdkPixbuf in the API.

8 years agowindow: Stop using GdkPixbuf
Matthias Clasen [Wed, 29 Nov 2017 22:23:56 +0000 (17:23 -0500)]
window: Stop using GdkPixbuf

We can get by with just using GdkTexture.

8 years agoCosmetic formatting fixes
Matthias Clasen [Wed, 29 Nov 2017 22:06:15 +0000 (17:06 -0500)]
Cosmetic formatting fixes

8 years agowayland: Fix indentation of previous commit
Christophe Fergeau [Wed, 29 Nov 2017 11:15:30 +0000 (12:15 +0100)]
wayland: Fix indentation of previous commit

8 years agowayland: emit GDK_SELECTION_CLEAR on owner changes
Christophe Fergeau [Tue, 28 Nov 2017 16:44:06 +0000 (17:44 +0100)]
wayland: emit GDK_SELECTION_CLEAR on owner changes

The wayland backend currently never emits GDK_SELECTION_CLEAR events.
GtkClipboard uses this signal in order to clear the clipboard owner when
the selection is set to something outside the application.
This commit ensures the wayland backend emits GDK_SELECTION_CLEAR before
setting the clipboard owner to NULL, as this means we lost the
selection.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=790031

8 years agowayland: Remove unused data structure
Christophe Fergeau [Tue, 28 Nov 2017 16:43:24 +0000 (17:43 +0100)]
wayland: Remove unused data structure

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=790031

8 years agoDrop gtk_application_is_inhibited
Matthias Clasen [Wed, 29 Nov 2017 04:02:58 +0000 (23:02 -0500)]
Drop gtk_application_is_inhibited

This function returns global session state that may
not be available to applications (e.g. in sandboxed
environments), and is not needed by applications,
so just drop it, instead of keeping a function around
that can't be guaranteed to work.

8 years agoImprove the docs
Matthias Clasen [Wed, 29 Nov 2017 03:52:44 +0000 (22:52 -0500)]
Improve the docs

Document that gtk_application_is_inhibited can't
be guaranteed to work.

8 years agoinspector: Reorganize stack
Benjamin Otte [Wed, 29 Nov 2017 03:02:24 +0000 (04:02 +0100)]
inspector: Reorganize stack

There are too many stack elements in the main stack. So add a substack
for the pages that display common global state. The appropriate name I
found for it was "Global".

It's used to house the General, Visual, Resources and Statistics pages
for now.

8 years agoinspector: remove visible=TRUE properties
Benjamin Otte [Wed, 29 Nov 2017 02:25:58 +0000 (03:25 +0100)]
inspector: remove visible=TRUE properties

This is the defualt these days.

8 years agogdk: Add some missing autocleanups
Matthias Clasen [Tue, 28 Nov 2017 20:03:15 +0000 (15:03 -0500)]
gdk: Add some missing autocleanups

GdkMonitor and GdkSeat were missing here.

8 years agoFix some parameter name mismatches to make g-ir-scanner happier
Rico Tzschichholz [Tue, 28 Nov 2017 14:20:14 +0000 (15:20 +0100)]
Fix some parameter name mismatches to make g-ir-scanner happier

8 years agogdkseatdefault: Use TABLET_STYLUS capability for styli/erasers/cursors
Carlos Garnacho [Mon, 27 Nov 2017 20:24:54 +0000 (21:24 +0100)]
gdkseatdefault: Use TABLET_STYLUS capability for styli/erasers/cursors

Those are devices created for drawing tablets, so using the "pointer"
capability is far too generic.

8 years agogdk/wayland: Emit GdkSeat::device-added/removed
Carlos Garnacho [Mon, 27 Nov 2017 18:51:38 +0000 (19:51 +0100)]
gdk/wayland: Emit GdkSeat::device-added/removed

Those were never sent in this backend...

8 years agoFix up _gtk_widget_list_devices
Matthias Clasen [Mon, 27 Nov 2017 17:34:08 +0000 (12:34 -0500)]
Fix up _gtk_widget_list_devices

When I rewrote that function to not use GdkDeviceManager,
I overlooked that the window filtering needs to apply
to the master pointer as well, as other code assumes
that _gtk_widget_get_device_window will return non-NULL
on the devices in the list. Fix this.

8 years agoFix a typo
Matthias Clasen [Mon, 27 Nov 2017 15:55:32 +0000 (10:55 -0500)]
Fix a typo

The signal is called ::unpaired-release.

8 years agoUpdate Serbian translation
Милош Поповић [Mon, 27 Nov 2017 10:38:07 +0000 (10:38 +0000)]
Update Serbian translation

8 years agolistbox: Handle unpaired releases as well
Matthias Clasen [Mon, 27 Nov 2017 00:52:01 +0000 (19:52 -0500)]
listbox: Handle unpaired releases as well

Same as for flowbox in the previous commit.

8 years agogtkflowbox: Activate items on ::unpaired-release
Carlos Garnacho [Tue, 21 Nov 2017 21:35:31 +0000 (22:35 +0100)]
gtkflowbox: Activate items on ::unpaired-release

If the flowbox is single-click.

https://bugzilla.gnome.org/show_bug.cgi?id=789163

8 years agogtkgesturemultipress: Add ::unpaired-release signal
Carlos Garnacho [Tue, 21 Nov 2017 19:14:52 +0000 (20:14 +0100)]
gtkgesturemultipress: Add ::unpaired-release signal

This signal will be emitted whenever the gesture received a
button release or touch end event without a pairing button
press or touch begin. This usually happens when grabs transfer
input from one widget to another mid-press.

https://bugzilla.gnome.org/show_bug.cgi?id=789163

8 years agowayland: Don't provide gsetting if dconf is not available
Matthias Clasen [Mon, 27 Nov 2017 00:40:28 +0000 (19:40 -0500)]
wayland: Don't provide gsetting if dconf is not available

This makes gtk+ fall back to reading ~/.config/gtk-3.0/settings.ini
on systems with Wayland, but without dconf (do those exist?).

https://bugzilla.gnome.org/show_bug.cgi?id=790201

8 years agoGtkWindow: Fix the down-scaling in icon_from_list()
Kjell Ahlstedt [Mon, 13 Nov 2017 11:48:57 +0000 (12:48 +0100)]
GtkWindow: Fix the down-scaling in icon_from_list()

Must use floating-point division to get the correct scale factors.
cairo_set_source_surface() must be called after cairo_scale().

https://bugzilla.gnome.org/show_bug.cgi?id=790287

8 years agoUpdate POTFILES.in
Piotr Drąg [Sat, 25 Nov 2017 16:32:53 +0000 (17:32 +0100)]
Update POTFILES.in

8 years agowayland: Drop GdkWaylandDeviceManager
Matthias Clasen [Sat, 25 Nov 2017 13:12:48 +0000 (08:12 -0500)]
wayland: Drop GdkWaylandDeviceManager

This object had no functionality left.

8 years agoDrop GdkDeviceManager entirely
Matthias Clasen [Sat, 25 Nov 2017 13:25:15 +0000 (08:25 -0500)]
Drop GdkDeviceManager entirely

Nothing uses it anymore.

8 years agoDrop the ::device-manager property
Matthias Clasen [Sat, 25 Nov 2017 13:24:17 +0000 (08:24 -0500)]
Drop the ::device-manager property

Not used for anything anymore.

8 years agox11: Stop deriving from GdkDeviceManager
Matthias Clasen [Sat, 25 Nov 2017 13:23:25 +0000 (08:23 -0500)]
x11: Stop deriving from GdkDeviceManager

We can just derive from GObject.

8 years agowayland: Stop deriving from GdkDeviceManager
Matthias Clasen [Sat, 25 Nov 2017 13:22:12 +0000 (08:22 -0500)]
wayland: Stop deriving from GdkDeviceManager

We can just derive from GObject.

8 years agowin32: Stop deriving from GdkDeviceManager
Matthias Clasen [Sat, 25 Nov 2017 13:21:37 +0000 (08:21 -0500)]
win32: Stop deriving from GdkDeviceManager

We can just derive from GObject.

8 years agoquartz: Stop deriving from GdkDeviceManager
Matthias Clasen [Sat, 25 Nov 2017 13:20:57 +0000 (08:20 -0500)]
quartz: Stop deriving from GdkDeviceManager

We can just derive from GObject.

8 years agoDrop the GdkDeviceManager::display property
Matthias Clasen [Sat, 25 Nov 2017 04:00:40 +0000 (23:00 -0500)]
Drop the GdkDeviceManager::display property

Move this to the backends, and stop deriving
from GdkDeviceManager.

8 years agoRemove the get_client_pointer vfunc
Matthias Clasen [Sat, 25 Nov 2017 03:33:12 +0000 (22:33 -0500)]
Remove the get_client_pointer vfunc

8 years agoDrop the get_client_pointer vfunc
Matthias Clasen [Sat, 25 Nov 2017 02:26:20 +0000 (21:26 -0500)]
Drop the get_client_pointer vfunc

There is no api using this anymore.

8 years agoDrop the list_devices vfunc
Matthias Clasen [Sat, 25 Nov 2017 02:20:52 +0000 (21:20 -0500)]
Drop the list_devices vfunc

We no longer have api that uses this.

8 years agoDrop gdk_device_manager_list_devices
Matthias Clasen [Sat, 25 Nov 2017 02:08:40 +0000 (21:08 -0500)]
Drop gdk_device_manager_list_devices

It is not used and GdkDeviceManager is going away.

8 years agogdk: Drop devicemanager signals
Matthias Clasen [Sat, 25 Nov 2017 01:51:19 +0000 (20:51 -0500)]
gdk: Drop devicemanager signals

Nobody is emitting them anymore.

8 years agowayland: Stop emitting devicemanager signals
Matthias Clasen [Sat, 25 Nov 2017 01:42:09 +0000 (20:42 -0500)]
wayland: Stop emitting devicemanager signals

Nobody is listening to these signals anymore.

8 years agox11: Stop emitting devicemanager signals
Matthias Clasen [Sat, 25 Nov 2017 01:38:47 +0000 (20:38 -0500)]
x11: Stop emitting devicemanager signals

Nobody is listening to these anymore, so there
is no point in emitting them.

8 years agodisplay: Drop the device_manager for good
Matthias Clasen [Fri, 24 Nov 2017 17:19:35 +0000 (12:19 -0500)]
display: Drop the device_manager for good

This is now entirely the backends responsibility.

8 years agowayland: Stop using display->device_manager
Matthias Clasen [Fri, 24 Nov 2017 17:25:49 +0000 (12:25 -0500)]
wayland: Stop using display->device_manager

We can keep the device manager in the backend.

8 years agoquartz: Stop using display->device_manager
Matthias Clasen [Fri, 24 Nov 2017 17:03:36 +0000 (12:03 -0500)]
quartz: Stop using display->device_manager

We can keep the device manager in the backend.

8 years agowin32: Stop using gdk_display_get_device_manager
Matthias Clasen [Fri, 24 Nov 2017 16:56:42 +0000 (11:56 -0500)]
win32: Stop using gdk_display_get_device_manager

We can keep the devicemanager in the backend.

8 years agox11: Stop using gdk_display_get_device_manager
Matthias Clasen [Fri, 24 Nov 2017 14:14:17 +0000 (09:14 -0500)]
x11: Stop using gdk_display_get_device_manager

We can keep the displaymanager in the backend.

8 years agobroadway: Remove devicemanager implementation
Matthias Clasen [Fri, 24 Nov 2017 03:20:50 +0000 (22:20 -0500)]
broadway: Remove devicemanager implementation

It is not used and not needed anymore.

8 years agobroadway: Stop using GdkDeviceManager
Matthias Clasen [Fri, 24 Nov 2017 03:17:30 +0000 (22:17 -0500)]
broadway: Stop using GdkDeviceManager

We can use the GdkSeat apis for this.

8 years agodisplay: Stop using devicemanager internally
Matthias Clasen [Fri, 24 Nov 2017 16:31:18 +0000 (11:31 -0500)]
display: Stop using devicemanager internally

We can just use the seats to find out about device removals.

8 years agoDrop GdkDeviceManager APIs
Matthias Clasen [Thu, 23 Nov 2017 21:28:00 +0000 (16:28 -0500)]
Drop GdkDeviceManager APIs

No longer used outside of the backends.

8 years agoDon't mention GdkDeviceManager in docs
Matthias Clasen [Thu, 23 Nov 2017 21:23:41 +0000 (16:23 -0500)]
Don't mention GdkDeviceManager in docs

It is going away.

8 years agoDrop support for setting event masks for floating devices
Matthias Clasen [Thu, 23 Nov 2017 21:21:37 +0000 (16:21 -0500)]
Drop support for setting event masks for floating devices

These are very rarely needed, and are X11-specific.
If it turns out that somebody needs this, it can come
back as X11-specific functionality.

8 years agogdk: Move gdk_disable_multidevice tot he X11 backend
Matthias Clasen [Thu, 23 Nov 2017 21:11:48 +0000 (16:11 -0500)]
gdk: Move gdk_disable_multidevice tot he X11 backend

This api only ever did something for X11, so move
it there. Update the docs and adapt the only caller.

8 years agoDrop gdk_display_get_device_manager API
Matthias Clasen [Thu, 23 Nov 2017 20:43:52 +0000 (15:43 -0500)]
Drop gdk_display_get_device_manager API

GdkDeviceManager is being replaced by GdkSeat.

8 years agotreeview: Don't use GdkDeviceManager
Matthias Clasen [Thu, 23 Nov 2017 20:40:12 +0000 (15:40 -0500)]
treeview: Don't use GdkDeviceManager

We can just as well use GdkSeat to enumerate (attached)
devices. Note that this change excludes floating devices
from consideration.

This keeps the copy-pasted code in sync with gtkwindow.c

8 years agowindow: Don't use GdkDeviceManager
Matthias Clasen [Thu, 23 Nov 2017 20:39:19 +0000 (15:39 -0500)]
window: Don't use GdkDeviceManager

We can just as well use GdkSeat to enumerate (attached)
devices. Note that this change excludes floating devices
from consideration.

8 years agowidget: Don't use GdkDeviceManager
Matthias Clasen [Thu, 23 Nov 2017 20:25:13 +0000 (15:25 -0500)]
widget: Don't use GdkDeviceManager

We can just as well use GdkSeat to enumerate the devices.

8 years agoFix the build
Matthias Clasen [Sat, 25 Nov 2017 16:01:38 +0000 (11:01 -0500)]
Fix the build

A stray GdkScreen leftover.

8 years agogdk: Remove a leftover GdkScreen
Matthias Clasen [Sat, 25 Nov 2017 13:37:49 +0000 (08:37 -0500)]
gdk: Remove a leftover GdkScreen

8 years agogsk: Quiet a compiler warning
Matthias Clasen [Fri, 24 Nov 2017 13:51:22 +0000 (08:51 -0500)]
gsk: Quiet a compiler warning

We insist on handling all cases in a switch, nowadays.

8 years agoEntry:show-emoji-icon is in GTK+ 3 too
Daniel Boles [Thu, 23 Nov 2017 17:21:36 +0000 (17:21 +0000)]
Entry:show-emoji-icon is in GTK+ 3 too

Document the earliest version reached.

8 years agoBe more specific in ::insert-emoji Since tag
Daniel Boles [Thu, 23 Nov 2017 17:17:08 +0000 (17:17 +0000)]
Be more specific in ::insert-emoji Since tag

I had been unsure whether to include the minor version, but
:show-emoji-icon already did, so do the same here to match.

8 years agobroadway: Disable fallback spew by default
Alexander Larsson [Thu, 23 Nov 2017 09:45:27 +0000 (10:45 +0100)]
broadway: Disable fallback spew by default

8 years agobroadway: Roundtrip each update to rate limit redraw
Alexander Larsson [Thu, 23 Nov 2017 09:22:23 +0000 (10:22 +0100)]
broadway: Roundtrip each update to rate limit redraw

8 years agobroadway: Handle cairo nodes
Alexander Larsson [Wed, 22 Nov 2017 22:42:29 +0000 (23:42 +0100)]
broadway: Handle cairo nodes

This means we can directly upload these as textures, rather than
create a new surface and draw it into that. We still have to upload,
but there isn't a lot we can do about this as for these nodes
we generally redraw everything each time.

8 years agobroadway: Handle texture gsd nodes
Alexander Larsson [Wed, 22 Nov 2017 17:24:20 +0000 (18:24 +0100)]
broadway: Handle texture gsd nodes

8 years agobroadway: Add clip node
Alexander Larsson [Wed, 22 Nov 2017 16:40:39 +0000 (17:40 +0100)]
broadway: Add clip node

8 years agobroadway: Don't log cache hits
Alexander Larsson [Wed, 22 Nov 2017 16:29:43 +0000 (17:29 +0100)]
broadway: Don't log cache hits

8 years agobroadway: Cache color translated textures
Alexander Larsson [Wed, 22 Nov 2017 16:28:53 +0000 (17:28 +0100)]
broadway: Cache color translated textures

These happen a lot due to the recolored symbolics

8 years agobroadway: Add opacity node
Alexander Larsson [Wed, 22 Nov 2017 16:28:44 +0000 (17:28 +0100)]
broadway: Add opacity node

8 years agobroadway: Add shadow node
Alexander Larsson [Wed, 22 Nov 2017 15:53:15 +0000 (16:53 +0100)]
broadway: Add shadow node

8 years agobroadway: Add node cache for text
Alexander Larsson [Wed, 22 Nov 2017 14:39:09 +0000 (15:39 +0100)]
broadway: Add node cache for text

8 years agobroadway: Remove inflate code
Alexander Larsson [Wed, 22 Nov 2017 11:37:39 +0000 (12:37 +0100)]
broadway: Remove inflate code

This is not used anymore

8 years agobroadway: Add linear gradient node
Alexander Larsson [Wed, 22 Nov 2017 11:31:36 +0000 (12:31 +0100)]
broadway: Add linear gradient node

8 years agobroadway: Add RoundedClip node
Alexander Larsson [Wed, 22 Nov 2017 09:32:47 +0000 (10:32 +0100)]
broadway: Add RoundedClip node

8 years agobroadway: Add inset shadow
Alexander Larsson [Wed, 22 Nov 2017 08:59:22 +0000 (09:59 +0100)]
broadway: Add inset shadow

8 years agobroadway: Add outset shadow node
Alexander Larsson [Wed, 22 Nov 2017 08:47:47 +0000 (09:47 +0100)]
broadway: Add outset shadow node

8 years agobroadway: Fix border node positioning
Alexander Larsson [Wed, 22 Nov 2017 07:48:41 +0000 (08:48 +0100)]
broadway: Fix border node positioning

8 years agobroadway: Add border node
Alexander Larsson [Tue, 21 Nov 2017 22:01:00 +0000 (23:01 +0100)]
broadway: Add border node

8 years agobroadway: Clean up node parser
Alexander Larsson [Tue, 21 Nov 2017 21:58:31 +0000 (22:58 +0100)]
broadway: Clean up node parser

8 years agobroadway: Add color nodes
Alexander Larsson [Tue, 21 Nov 2017 20:56:06 +0000 (21:56 +0100)]
broadway: Add color nodes

8 years agobroadway: Fix input events
Alexander Larsson [Tue, 21 Nov 2017 20:22:04 +0000 (21:22 +0100)]
broadway: Fix input events

8 years agobroadway: Don't swap node trees until all images are loaded
Alexander Larsson [Tue, 21 Nov 2017 19:28:56 +0000 (20:28 +0100)]
broadway: Don't swap node trees until all images are loaded

8 years agobroadway: Rewrite textures in nodes to global
Alexander Larsson [Tue, 21 Nov 2017 19:01:57 +0000 (20:01 +0100)]
broadway: Rewrite textures in nodes to global

8 years agobroadway: Remove remaining unused window_update code
Alexander Larsson [Tue, 21 Nov 2017 18:49:29 +0000 (19:49 +0100)]
broadway: Remove remaining unused window_update code

8 years agobroadway: Initial version of using actual render nodes
Alexander Larsson [Tue, 21 Nov 2017 18:33:12 +0000 (19:33 +0100)]
broadway: Initial version of using actual render nodes

8 years agobroadway: Use textures to configure window contents
Alexander Larsson [Sat, 18 Nov 2017 19:36:57 +0000 (20:36 +0100)]
broadway: Use textures to configure window contents

Instead of using the old buffer code, just use textures to define the
window contents.

8 years agobroadway: Actually upload textures to client
Alexander Larsson [Sat, 18 Nov 2017 16:36:38 +0000 (17:36 +0100)]
broadway: Actually upload textures to client

8 years agobroadway: Introduce global ids for the textures
Alexander Larsson [Sat, 18 Nov 2017 15:47:43 +0000 (16:47 +0100)]
broadway: Introduce global ids for the textures

8 years agobroadway: Add support for uploading textures to daemon
Alexander Larsson [Fri, 17 Nov 2017 15:40:06 +0000 (16:40 +0100)]
broadway: Add support for uploading textures to daemon

8 years agobroadway: Support fd passing in protocol
Alexander Larsson [Fri, 17 Nov 2017 14:57:28 +0000 (15:57 +0100)]
broadway: Support fd passing in protocol

This will be used to pass buffers